package com.last1mile.dao.mock;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import com.last1mile.dao.interfaces.CityDao;
import com.last1mile.pojo.CityDO;

//@Component("cityDao")
public class CityDaoImplMock implements CityDao {
	@Override
	public List<CityDO> selectByCityUpId(String cityUpId) throws SQLException {
		List<CityDO> records = new ArrayList<CityDO>();
		CityDO city = new CityDO();
		city.setAreacode("0572");
		city.setCityType("市");
		city.setCityUpId("001001");
		city.setCityId("001001001");
		city.setCnName("杭州");
		city.setEnName("hangzhou");
		city.setId(2);
		city.setZipcode("310050");
		records.add(city);
		return records;
	}

	@Override
	public int deleteByPrimaryKey(Integer id) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void insert(CityDO record) throws SQLException {
		// TODO Auto-generated method stub

	}

	@Override
	public CityDO selectByPrimaryKey(Integer id) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updateByPrimaryKey(CityDO record) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKeySelective(CityDO record) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

}
